package com.yuantu.judiciary.model.domain;

import com.yuantu.judiciary.model.BaseDO;
import com.yuantu.judiciary.model.enums.UserFollowType;
import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * 用户关注表
 *
 * @author syw
 * @since 2023-06-12
 **/
@Data
@Entity
@DynamicUpdate
@Table(name = "user_follow")
public class UserFollowDO extends BaseDO {

    /**
     * 实体id
     */
    @Column(nullable = false)
    @Comment("实体id")
    private Long entityId;

    /**
     * 用户关注类型
     */
    @Enumerated(EnumType.STRING)
    @Column(length = 50, nullable = false)
    @Comment("用户关注类型")
    private UserFollowType type;

}
